
const resourceInfo = {
  state: {
    curView: null
  },
  mutations: {
    SET_VIEW: (state, data) => {
      state.curView = data;
      localStorage.setItem('curView', data);
    }
  },
  actions: {
    setCurView({ commit }, data) {
      commit('SET_VIEW', data);
    }
  }
// localStorage.getItem('curView')
};

export default resourceInfo;
